package com.swag.controller;

import com.swag.entity.IndexData;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/index")
@Api(tags = "首页接口")
public class IndexController {

    @ApiOperation("查询首页数据")
    @GetMapping("/queryList")
    public IndexData queryList() {
        return new IndexData(1, "测试数据");
    }

}
